﻿using Microsoft.SPOT;
using dotnetwarrior.NetMF.DL40;
using Gadgeteer.Modules.GHIElectronics;

namespace DLIOTest
{
  public partial class Program
  {

    void ProgramStarted()
    {
      // Create an instance of the DLIOModule attached to Gadgeteer Socket 7
      var _io = new DLIOModule(3);

      //Do Output port test
      //TestOutputPin.Run(_io);

      //Do counter test
      //TestCounter.Run(_io);

      //Do Capture test
      // Setup a PWM signal which can be wired to the DL40 via an extender module
      //var _pwm = extender.SetupPWMOutput(Gadgeteer.Socket.Pin.Seven);
      //TestCapture.Run(_io, _pwm);

      //Do ADC test
      //TestAnalogPin.Run(_io);

      //Do PWM test
      TestPWMPin.Run(_io);

      //Do interrupt test
      TestInterruptPin.Run(_io);

      Debug.Print("Program Started");
    }
  }
}
